import axios from 'axios';
import {API_NEW_VERSION, ALL_SERVICE_API} from '../api';

export const createOrganizationChargeOffsLog = (id, params) => {
  return axios.post(API_NEW_VERSION + 'organizations/' + id + '/organization-charge-offs-logs', params);
};

export const getAllOrganizationChargeOffsLogs = (params) => {
  return axios.get(API_NEW_VERSION + 'organization-charge-offs-logs', {params: params});
};

export const getAllTruckLoadOrganizationChargeOffsLogs = (parmas) => {
  return axios.get(ALL_SERVICE_API + '/truck-load-organization-charge-offs-logs', {params: parmas});
};

export const createTruckLoadOrganizationChargeOffsLog = (id, params) => {
  return axios.post(ALL_SERVICE_API + '/organizations/' + id + '/truck-load-organization-charge-offs-logs', params);
};
